﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="GMAC.ReportingSystem.Login" Theme="Theme" EnableEventValidation="false" EnableTheming="true"  %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>.:: Reporting System ::.</title>
    <script type="text/javascript">
        if (parent.frames.length > 1) {
            parent.location.href = "./Login.aspx";
        }
        else if (parent.parent.frames.length > 1) {
            parent.parent.location.href = "./Login.aspx"
        }
    </script>
</head>
<body class="TotalBody">
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
    <div class="Contenedor">
        <table cellpadding="0" cellspacing="0" border="0" style="width: 100%">
            <tr>
                <td style="width: 100%; height: 84px">
                    <table border="0" cellpadding="0" cellspacing="0" style="width: 100%;">
                        <tr><td><img id="imgLeftHeader" src="App_Themes/Theme/Images/left_Header.jpg" style="width: 281px; height: 59px;" /></td><td class="HeaderBackgroundLeft" style="width: 50%; height: 59px"></td><td><img id="imgCenterHeader" src="App_Themes/Theme/Images/rs.jpg" style="width: 469px; border: 0px; height: 59px;" /></td><td class="HeaderBackgroundRight" style="width: 100%; height: 59px"></td><td><img id="imgRightHeader" src="App_Themes/Theme/Images/right_header_new.jpg" style="width: 266px; height: 59px; border: 0px;" /></td></tr><tr style="height: 25px; background-color: Black;"><td class="HeaderLineBackground" colspan="5"></td></tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td class="TDSeparadorV">
                </td>
            </tr>
            <tr>
                <td style="text-align: center">
                    <span class="FontArialBoldCaps TitleFontBlue">Welcome to REPORTING SYSTEM</span>
                </td>
            </tr>
            <tr>
                <td class="TDSeparadorV">
                </td>
            </tr>
            <tr>
                <td class="TDSeparadorV">
                </td>
            </tr>
            <tr>
                <td align="center">
                    <table cellpadding="0" cellspacing="0" border="0" style="width: 550px; height: 150px;
                        border: solid 2px #bbbbbb; text-align: left">
                        <tr>
                            <td class="TDLabelBackground" style="width: 150px; vertical-align: middle; text-align: center" rowspan="2">
                                <img id="logoGMAC" src="App_Themes/Theme/Images/Images IE6/Keys.gif"   />
                            </td>
                            <td>
                                <table cellpadding="0" cellspacing="0" border="0">
                                    <tr>
                                        <td style="text-align: right; width: 80px">
                                            <span class="FontArialBold LabelRight12px">Login</span>
                                        </td>
                                        <td class="TDTextBox" style="text-align: left">
                                            <asp:TextBox ID="txtLogin" runat="server" Text="" SkinID="TextBox12px" Width="180px" MaxLength="6" TabIndex="1"></asp:TextBox>
                                            <cc1:filteredtextboxextender ID="filterLogin" runat="server" 
                                                TargetControlID="txtLogin" SkinID="filterAlphanumericNS">
                                            </cc1:filteredtextboxextender>
                                            <asp:RequiredFieldValidator ID="rfvLogin" runat="server" ControlToValidate="txtLogin" Display="Dynamic">*</asp:RequiredFieldValidator>
                                            <cc1:validatorcalloutextender ID="vceLogin" runat="server" 
                                                TargetControlID="rfvLogin"></cc1:validatorcalloutextender>
                                        </td>
                                        <td rowspan="2" style="vertical-align: middle; text-align: center; padding-left: 5px;
                                            padding-right: 5px">
                                            <asp:ImageButton ID="imgEnterSite" ImageAlign="Middle" ImageUrl="~/App_Themes/Theme/Images/Botones/Botones Reducidos/Ingles/b_Enter.jpg"
                                                runat="server" OnClick="imgEnterSite_Click" TabIndex="3" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="text-align: right; width: 80px">
                                            <span class="FontArialBold LabelRight12px">Password</span>
                                        </td>
                                        <td class="TDTextBox" style="text-align: left">
                                            <asp:TextBox ID="txtPassword" runat="server" Text="" TextMode="Password" SkinID="TextBox12px"
                                                Width="180px" MaxLength="20" TabIndex="2"></asp:TextBox>
                                            <cc1:filteredtextboxextender ID="filterPassword" runat="server" 
                                                TargetControlID="txtPassword" SkinID="filterAlphanumericNS">
                                            </cc1:filteredtextboxextender>
                                            <asp:RequiredFieldValidator ID="rfvPassword" runat="server" ControlToValidate="txtPassword" Display="Dynamic">*</asp:RequiredFieldValidator>
                                            <cc1:validatorcalloutextender ID="vcePassword" runat="server" 
                                                TargetControlID="rfvPassword"></cc1:validatorcalloutextender>
                                        </td>
                                    </tr>
                                </table>
                                
                        <%--<asp:UpdatePanel ID="upForgotPassword" runat="server">
                        <ContentTemplate>--%>
                            <tr>
                            <td align="center" valign="middle" style="cursor: pointer; cursor: hand">
                               <asp:ImageButton ID="btnForgotPassword" runat="server" ImageUrl="App_Themes/Theme/Images/Images IE6/ForgotPassword.gif"
                                 OnClick="btnForgotPassword_Click" CausesValidation="false" /> 
                            </td>
                        </tr>    
                            
                        <%--</ContentTemplate>
                        </asp:UpdatePanel>--%>
                        
                            </td>
                        </tr>
                                                
                    </table>
                </td>
            </tr>
        </table>
    </div>
    
    <asp:UpdatePanel ID="upMessage" runat="server" UpdateMode="Conditional">
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="imgEnterSite" EventName="Click" />
        </Triggers>
        <ContentTemplate>
            <asp:Panel ID="pnlMessage" runat="server" CssClass="modalPopup" Height="140px" Style="display: none;"
                Width="400px">
                <table width="100%">
                    <tr style="height: 100px">
                        <td style="height: 100%;" align="center">
                            <uc1:wucMessage ID="wucMessage" runat="server" />
                        </td>
                    </tr>
                    <tr style="vertical-align: bottom">
                        <td align="center">
                            <asp:ImageButton ID="btnAccept" runat="server" ImageUrl="~/App_Themes/Theme/Images/Botones/Botones Reducidos/Ingles/b_Accept.jpg"
                                CausesValidation="false" />
                        </td>
                    </tr>
                </table>
            </asp:Panel>
            <cc1:ModalPopupExtender ID="popupExtenderMessage" runat="server" BackgroundCssClass="modalBackground"
                DropShadow="false" PopupControlID="pnlMessage" TargetControlID="lnkPopupMessage"
                CancelControlID="btnAccept">
            </cc1:ModalPopupExtender>
            <asp:LinkButton ID="lnkPopupMessage" runat="server"></asp:LinkButton>
        </ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>

